# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Diego Galizzi <dgalizzi at gmail dot com>
# Contributor: zoulnix <http://goo.gl/HQaP>

pkgname=cimg
pkgver=3.2.6
pkgrel=1
pkgdesc="Open-source C++ toolkit for image processing"
arch=('any')
url="http://cimg.eu/"
license=('custom')
depends=('fftw' 'graphicsmagick')
source=("$pkgname-$pkgver.tar.gz::https://github.com/dtschump/CImg/archive/v.${pkgver}.tar.gz")
sha512sums=('3a091ae972f98f54ab9a5dc25fc921819e501accb1e514ad3fe05df79b69c6e84a8487c9167c80235a44ea656a4468f85f3854358cadd8a5768bdcf04e7459b0')

package() {
  cd "${srcdir}"/CImg-v.${pkgver}
  install -d "${pkgdir}"/usr/include/CImg/plugins ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 CImg.h "${pkgdir}"/usr/include/
  install -m644 plugins/*.h "${pkgdir}"/usr/include/CImg/plugins/
  install -m644 Licence_CeCILL*_V*-en.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
}
